<%@ page import="java.util.HashSet" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>航班系统后台管理页面</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/themes/icon.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/jquery-easyui-1.3.3/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript">
        function openTab(text,url,iconCls){
            if($("#tabs").tabs("exists",text)){
                $("#tabs").tabs("select",text);
            }else{
                var content="<iframe frameborder=0 scrolling='auto' style='width:100%;height:100%' src='${pageContext.request.contextPath}/super/"+url+"'></iframe>";
                $("#tabs").tabs("add",{
                    title:text,
                    iconCls:iconCls,
                    closable:true,
                    content:content
                });
            }
        }

    </script>
</head>
<body class="easyui-layout">
<div region="north" style="height: 98px;background-color: #fff">
    <table style="padding: 5px" width="100%">
        <tr>
            <td width="50%">
                <img alt="logo" src="${pageContext.request.contextPath}/static/images/logo2.png">
            </td>
            <td valign="bottom" align="right" width="50%">
                <p>在线人数：<%

                    HashSet sessions=(HashSet)application.getAttribute("sessions");

                    out.print(sessions.size());

                %></p>

                <font size="3">&nbsp;&nbsp;<strong>欢迎：</strong><small>超级管理员</small></font>
            </td>
        </tr>
    </table>
</div>
<div region="center">
    <div class="easyui-tabs" fit="true" border="false" id="tabs">
        <div title="首页" data-options="iconCls:'icon-home'">
            <div align="center">
                <img src="/static/images/mianbg.gif" style="width: 100%;height: 100%">
            </div>
        </div>
    </div>
</div>
<div region="west" style="width: 200px" title="导航菜单" split="true">
    <div class="easyui-accordion" data-options="fit:true,border:false">

        <div title="用户信息"  data-options="iconCls:'icon-system'" style="padding:10px">
            <a href="javascript:openTab('用户信息管理','showUser.jsp','icon-link')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-link'" style="width: 150px">用户信息管理</a>
        </div>
        <div title="航班管理"  data-options="iconCls:'icon-system'" style="padding:10px">
            <a href="javascript:openTab('航班信息管理','showFlights.jsp','icon-link')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-link'" style="width: 150px">航班信息管理</a>
        </div>

        <div title="订单管理"  data-options="iconCls:'icon-system'" style="padding:10px">
            <a href="javascript:openTab('订单信息管理','showOrder.jsp','icon-link')" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-link'" style="width: 150px">订单信息查询</a>
        </div>

    </div>
</div>
<div region="south" style="height: 25px;padding: 5px" align="center">
        青岛的天真冷啊
</div>


</body>
</html>